package store.lunangangster.engine.impl.cmd;

import store.lunangangster.engine.impl.interceptor.CommandContext;

public class DeploymentDeleteCmd implements Command<Void> {

  protected String deploymentId;

  public DeploymentDeleteCmd(String deploymentId) {
    this.deploymentId = deploymentId;
  }

  @Override
  public Void execute(CommandContext commandContext) {
    commandContext.getProcessEngineConfiguration().getDeploymentManager().removeDeployment(deploymentId);
    return null;
  }
}
